{include template('header','common')}
<link href="{THEME_STYLE_PATH}style/css/gamety.css" type="text/css" rel="stylesheet" />
<div id="Mainbox">
<!--插入侧边栏-->
{include template('sidebar_login','common')}
<!--插入侧边栏-->
{include template('top_advance','common')}
<!--左侧-->
	<div class="Inside_left">
	<!--幻灯-->
	{include template('advert','common')}
	
			<!--幻灯-->
						<!--试玩平台-->
			<div class="Tycontent">
				<!--选项卡-->
				<div class="Tyc_opt">
				
					<a href="{U('Document/Index/lists',array('catid'=>2))}" class="tyc_opt_un">全部试玩</a>
					<a href="{U('Document/Index/lists',array('catid'=>2,'test_type'=>0))}" class="tyc_opt_un">专区试玩</a>
					<a href="{U('Document/Index/lists',array('catid'=>13))}" class="tyc_opt_on">体验赚钱</a>
					<a href="{U('Document/Index/lists',array('catid'=>15))}" class="tyc_opt_un">商家问答</a>
				</div>
				<!--选项卡-->

				<div class="tyzt_title"><span class="g2f">招募中的广告</span>&nbsp;&nbsp;|&nbsp;&nbsp;正在火热招募玩家的广告</div>
					{php $_wheres = time()." > task_starttime AND task_endtime > ".time()}
					{pc:document action="lists" catid="13" num="6" where='$_wheres'}
					<ul class="idx_tyad" style=" margin-bottom:20px;">
					{loop $data $d}
					<li>
						<p><a href="{$d[url]}" target="_blank" class="ityimg"><img src="{$d[thumb]}" height="118" width="202" /></a></p>
						<p class="a1"><a href="{$d[url]}" target="_blank">{$d[title]}</a></p>
						<p class="a2">每人奖励：<span class="ofe">{$d[do_coin]}</span><img src="{THEME_STYLE_PATH}style/images/ub.gif" class="ub21" />&nbsp;(约<span class="ofe"><?php echo exchange_money($d[do_coin]);?></span>元人民币)</p>
						<p class="a2">广告说明：{$d[description]}</p>
					</li>
					{/loop}
					</ul>
					{/pc}
				<div class="tyzt_title"><span class="g2f">招募已满的广告</span>&nbsp;&nbsp;|&nbsp;&nbsp;需要的玩家已招满，但体验时间未到的广告</div>
				{pc:document action="lists" catid="13"}
					<ul class="idx_ty2" style=" margin-bottom:20px;">
					{loop $data $v}
					{if $d[numbers] <= $d[nums]}
						<li>
							<p><a href="{$v[url]}" class="ityimg"><img src="{$v[thumb]}" height="100" width="158" /></a></p>
							<p class="a1"><a href="{$v[url]}">{$v[title]}</a><img src="{THEME_STYLE_PATH}style/images/zmm.gif" /></p>
							<p class="a2">每人奖励：<span class="ofe">{$v[aword]}</span><img src="{THEME_STYLE_PATH}style/images/ub.gif" class="ub21" /></p>
							<p class="a2">广告说明：{$v[description]}</p>
						</li>
						{/if}
					{/loop}
					</ul>
				{/pc}
				<div class="tyzt_title"><span class="g2f">已结束的广告</span>&nbsp;&nbsp;|&nbsp;&nbsp;体验已到期，处于领奖期的广告</div>
				{pc:document action="lists" catid="13"}
					<ul class="idx_ty2" style=" margin-bottom:20px;">
						{loop $data $k}
						<?php 
							$nowtime = NOW_TIME;
							$inputtime = $k[inputtime];
							//总的试玩时间
							$_time = $k[times]*24*60*60;
						?>
						{if $nowtime - $inputtime == $_time}
						<li>
							<p><a href="{$k[url]}" class="bwWrapper"><img src="{THEME_STYLE_PATH}style/images/1459.jpg" height="100" width="158" /></a></p>
							<p class="a1"><a href="{$k[url]}">{$k[title]}</a></p>
							<p class="a2">每人奖励：<span class="ofe">{$k[aword]}</span><img src="{THEME_STYLE_PATH}style/images/ub.gif" class="ub21" /></p>
							<p class="a2">广告说明：{$k[description]}</p>
						</li>
						{/if}
						{/loop}
					</ul>
				{/pc}
			</div>
			<!--试玩平台-->
		<!--左侧-->
		</div>
		<!--右侧-->
			<div class="Inside_right">
	<!--体验步骤-->
			<div class="tystep"><img src="{THEME_STYLE_PATH}style/images/tystep.gif" /></div>
	<!--体验步骤-->
	<!--大家都在玩-->
	<div class="Main_Right">
		<p class="title">大家都在玩</p>
		<ul class="idx_dzw" id="jxy_ul_gameing" style="height:250px;overflow:hidden;">
		<!--40条-->
			<li>
				<p><img src="{THEME_STYLE_PATH}style/images/12.jpg" class="dzw_head" width="50"></p>
				<p class="a1"><span class="g46">congreat</span></p>
				<p class="a2">玩：<a href="#/hitsJump.php?adID=1891" target="_blank" class="b40link">卧龙13服</a><br>领取了<span class="ofe">5,000</span><img src="{THEME_STYLE_PATH}style/images/ub.gif" class="ub17"></p>
			</li>
			
		</ul>
	</div>
	
	<script type="text/javascript">
		var scrollup_reward = new VerticalScroll("jxy_ul_gameing");
	    scrollup_reward.LineHeight = 0;
	    scrollup_reward.Amount = 1;
	    scrollup_reward.Delay = 50;
	    scrollup_reward.Timeout = 1000;
	    scrollup_reward.AutoScroll();
	</script>
	<!--大家都在玩-->
	<div class="Main_Right">
234*60
<!-- 广告位 -->

	</div>
	<!--客服中心-->
	<div class="Main_Right">
		<p class="title" style="margin-bottom:10px;">客服中心<label style="float:right;font-size:12px;font-weight: normal;"><a href="{U('Document/Index/lists',array('catid'=>30))}" class="da3" target="_blank">更多</a></label></p>
		<ul class="faqlist">
		{pc:document action="lists" catid="30" num="8"}
		{loop $data $c}
			<li><strong>{$n}.&nbsp;</strong><a href="{$c[url]}" {title_style($c[style])}>{cutstr($c[title],30)}</a></li>
		{/loop}
		{/pc}
		</ul>
	
	</div>
	<!--客服中心-->
</div>	
		<!--右侧-->
		<div class="clear"></div>
	</div>
	<!--主体-->
{include template('footer','common')}
</body>
</html>